//
//  WeSellerMessageModel.m
//  WeGalaxy
//
//  Created by Zheng on 2017/7/24.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "WeSellerMessageModel.h"

@implementation WeSellerMessageModel

- (void)setAttributes:(NSDictionary *)dataDic {
    [super setAttributes:dataDic];
    
    self.price = self.goods[@"price"];
    self.des = self.goods[@"des"];
    self.pic = self.goods[@"pic"];
    
    
    NSMutableArray *models = [NSMutableArray new];
    
    [self.charts enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        WeSellerMessageModel *model = [[WeSellerMessageModel alloc] initWithDataDic:obj];
        [models addObject:model];
    }];
    
    self.charts = [models copy];
   
}


@end
